<?php
/* @var $this SlaytController */
/* @var $model Slayt */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'slayt-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'baslik'); ?>
		<?php echo $form->textField($model,'baslik',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'baslik'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'alt_baslik'); ?>
		<?php echo $form->textField($model,'alt_baslik',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'alt_baslik'); ?>
	</div>
        
        <div class="row">
		<?php echo $form->labelEx($model,'resim'); ?>
		<?php echo $form->textArea($model,'resim',array('rows'=>20,'cols'=>70,'class'=>'ckeditor','id'=>'resim')); ?>
		<?php echo $form->error($model,'resim'); ?>
	</div>
	
        <div class="row">
		<?php echo $form->labelEx($model,'icerik'); ?>
		<?php echo $form->textArea($model,'icerik',array('rows'=>20,'cols'=>70,'class'=>'ckeditor','id'=>'icerik')); ?>
		<?php echo $form->error($model,'icerik'); ?>
	</div>

        <div class="row">
		<?php echo $form->labelEx($model,'url'); ?>
		<?php echo $form->textField($model,'url',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'url'); ?>
	</div>
        
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->